package com.cats.template.sys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cats.template.sys.pojo.model.UserRolesModel;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author duxiaobo
 * @date 2021/9/247:20 下午
 */
@Mapper
public interface UserRolesMapper extends BaseMapper<UserRolesModel> {

    @Delete("delete from sys_users_roles where user_id = #{userId} ")
    Boolean deleteByUserId(@Param("userId") Long userId);
}
